﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy.Core.Common;
using FortuneHeavenCommon.DataMap;
using FortuneHeavenDAL;

namespace FortuneHeavenBAL
{
    public class GiftBO : CommonOperate<Gift>
    {
        public GiftDAL _giftDAL;
        public GiftBO()
            : base()
        {
            _giftDAL = new GiftDAL();
        }

        public List<Gift> GetGifts(int page, int size)
        {
            return _giftDAL.GetGifts(page, size);
        }

        public int GetTotalSize()
        {
            return _giftDAL.GetTotalSize();
        }
         public List<Gift> GetGiftsByType(int page, int size,int type)
        {
            return _giftDAL.GetGiftsByType(page, size, type);
        }

         public int GetTotalSizeByType(int typeid)
         {
             return _giftDAL.GetTotalSizeByType(typeid);
         }
    }
}
